package com.whmskj.xjlhsc.service.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.whmskj.xjlhsc.entity.JsdInfo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * @BelongsProject: XJLHSC
 * @BelongsPackage: com.whmskj.xjlhsc.service.dto
 * @Author: lk
 * @CreateTime: 2025-07-19
 * @Description: TODO
 * @Version: 1.0
 */
@Data
public class HumidificationRoomDto implements Serializable {

    private static final long serialVersionUID = 1L;

    private HoverData hoverData;

    private List<JsdInfo> tableData;

    private List<String> xAxis;

    private List<Item> series = new ArrayList<>();


    @Data
    public static class HoverData implements Serializable {
        private String area;

        private List<Integer> prodLines;

        private Integer hdCount;

        private Integer gteSeven;

        private Integer ltSeven;

        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        private LocalDateTime rcTime;


    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Item implements Serializable {
        private String title;
        private List<Integer> data;
    }
}
